﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcurementInfoManage.aspx.cs" Inherits="TCS.Web.Admin.BusinessManage.ProcurementInfoManage" %>
<%@ Register Src="~/Admin/uc/AdminMapPath.ascx" TagName="MapPath" TagPrefix="uc1" %>
<%@ Register Src="../../Controls/checkright.ascx" TagName="checkright" TagPrefix="uc1" %>
<%@ Register TagPrefix="cc1" Namespace="LtpPageControl" Assembly="LtpPageControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>

    <script type="text/javascript" language="JavaScript" src="../../js/CheckBox.js"></script>
  <script type="text/javascript" language="JavaScript" src="../../js/Calendar3.js"></script>
    <link href="../Style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" runat="server">
    <div>
        <center>
         <uc1:MapPath ID="MapPath1" ParentName="采购信息监管" ThisName="采购信息查询"  runat="server"></uc1:MapPath>
            <table cellspacing="0" cellpadding="5" width="97%" align="center" border="0">
                <tr>
                    <td valign="middle" height="25">
                        &nbsp;&nbsp;&nbsp; 快速查询：
                        购入日期：<asp:TextBox ID="txtBugDateBegin" onclick="setday(this)" runat="server" Width="75px"></asp:TextBox>
                                至
                                <asp:TextBox ID="txtBugDateEnd" onclick="setday(this)" runat="server" Width="75px"></asp:TextBox>
                                <asp:TextBox ID="txtKey" runat="server" Text="请输入关键字" ToolTip="关键字"></asp:TextBox>&nbsp;
                                <asp:DropDownList ID="DropField" runat="server" Width="150px">
                                    <asp:ListItem Value="1">企业名称</asp:ListItem>
                                    <asp:ListItem Value="2">商品名称</asp:ListItem>
                                    <asp:ListItem Value="3">通用名称</asp:ListItem>
                                </asp:DropDownList>
                                <asp:ImageButton ID="btn_Search" runat="server" ImageUrl="../images/button_search.GIF"
                                    ToolTip="快速检索广告" OnClick="btn_Search_Click"></asp:ImageButton>
                    </td>
                </tr>
            </table>
           <table cellspacing="0" cellpadding="5" width="97%" border="0">
            <tr>
                <td align="left">
                    ○页次：<asp:Label ID="lblCurrentPage" runat="server" ForeColor="#e78a29"></asp:Label>页/<asp:Label
                        ID="lblPageCount" runat="server"></asp:Label>页，共<asp:Label ID="lblRowsCount" runat="server"
                            ForeColor="#e78a29"></asp:Label>条记录
                </td>
                <td align="right">
                    [<asp:LinkButton ID="btnFirst" runat="server" OnCommand="NavigateToPage" CommandArgument="First"
                        CommandName="Pager" Text="首 页">首 页</asp:LinkButton>] [<asp:LinkButton ID="btnPrev"
                            runat="server" OnCommand="NavigateToPage" CommandArgument="Prev" CommandName="Pager"
                            Text="上一页">上一页</asp:LinkButton>] [<asp:LinkButton ID="btnNext" runat="server" OnCommand="NavigateToPage"
                                CommandArgument="Next" CommandName="Pager" Text="下一页">下一页</asp:LinkButton>]
                    [<asp:LinkButton ID="btnLast" runat="server" OnCommand="NavigateToPage" CommandArgument="Last"
                        CommandName="Pager" Text="尾 页">尾 页</asp:LinkButton>]
                </td>
            </tr>
        </table>
        <table cellspacing="0" cellpadding="5" width="98%" border="0">
            <tr>
                <td bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                    <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" AllowSorting="True" OnRowCreated="gridView_RowCreated" OnPageIndexChanging="gridView_PageIndexChanging"
                        OnRowDataBound="gridView_RowDataBound" CellPadding="5" BorderWidth="1px" PageSize="15"
                        OnRowDeleting="gridView_RowDeleting" OnSorting="gridView_Sorting" DataKeyNames="CGID">
                        <Columns>
                            <asp:TemplateField HeaderText="选择" Visible="false">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="30px"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                                <ItemTemplate>
                                    <asp:CheckBox ID="SelectThis" onclick="javascript:CCA(this);" runat="server"></asp:CheckBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CGID" HeaderText="编号" Visible="false" />
                            <asp:TemplateField HeaderText="序号">
                                 <ItemTemplate>
                                        <%#GetNum(Container.DataItemIndex.ToString()) %>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="false" />
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="企业名称">
                                <ItemTemplate>
                                    <%# GetEntNameByMemberID(Eval("MemberID").ToString())%>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" Width="120px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="药品名称">
                                <ItemTemplate>
                                    <%--<asp:HyperLink ID="HyperLink1" onclick='return show(<%#Eval("DrugID")%>)'  runat="server" NavigateUrl='<%# Eval("DrugID", "DrugsInfoShow.aspx?id={0}") %>'
                                        Text='<%# GetDrugName(Eval("DrugID").ToString()) %>'></asp:HyperLink>--%>
                                        <a href="#" onclick="return show(<%#Eval("DrugID")%>)"><%# GetDrugName(Eval("DrugID").ToString()) %></a>
                                </ItemTemplate>
                                <HeaderStyle  Wrap="false" />
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="通用名称">
                                <ItemTemplate>
                                    <%# GetDrugComeName(Eval("DrugID").ToString()) %>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="BatchNumber" HeaderText="批号" />
                            <asp:BoundField DataField="Period" HeaderText="有效期" />
                            <asp:BoundField DataField="AvailabilityUnit" ItemStyle-HorizontalAlign="Left" HeaderText="供货单位" Visible="true" />
                            <asp:BoundField DataField="BuyCount" HeaderText="购入数" HeaderStyle-Wrap="false" Visible="true" />
                            <asp:BoundField DataField="BuyTime" HeaderText="购入日期" HeaderStyle-Wrap="false" Visible="true" />
                            <asp:BoundField DataField="Managor" HeaderText="经办人" HeaderStyle-Wrap="false" Visible="true" />
                            <asp:HyperLinkField HeaderText="修改" DataNavigateUrlFields="CGID" DataNavigateUrlFormatString="DrugsInfomodify.aspx?id={0}"
                                Text="修改" Visible="False" />
                            <asp:TemplateField HeaderText="删除" ShowHeader="false" Visible="false">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                        OnClientClick='return confirm("您真的要删除这条记录吗？")' Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                    </asp:GridView>
                    <asp:Label ID="Label1" runat="server" Visible="False" ForeColor="Red">没有数据！！</asp:Label>
                    <table cellpadding="0" width="700" border="0" bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                        <tr>
                            <td width="80" height="25">
                                <input onclick="CA2();" style="display:none" type="checkbox" name="allbox">
                            </td>
                            <td align="left">
                                <asp:Button ID="btn_Relese" runat="server" ToolTip=" 删 除 " Text=" 删 除 " BorderStyle="Groove"
                                    BackColor="Transparent" BorderColor="RoyalBlue" Height="20px" BorderWidth="1px"
                                    OnClick="btn_Relese_Click" Visible="false"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
         <script type="text/javascript">
            function show(id) 
    { 
        var val= showModalDialog("../../membershome/Business/DrugsInfoShow.aspx?id="+id,"true", "dialogWidth:700px;dialogHeight:250px;status:no;help:no;"); 
        return false;
    } 
        </script>
        </center>
    </div>
    <uc1:checkright ID="Checkright1" runat="server"></uc1:checkright>
    </form>
</body>
</html>
